﻿using AutoMapper;
using BCDto.Trading.Enquiry.SaleEnquiry;
using BCDto.Trading.Enquiry.SaleEnquiryChecklist;
using BCEntity.Trading.Enquiry.SaleEnquiry;
using BCEntity.Trading.Enquiry.SaleEnquiryChecklist;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.MapperProfiles.Trading.Enquiry
{
    public class EnquiryProfile : Profile
    {
        public EnquiryProfile()
        {

            //销售询盘
            CreateMap<SaleEnquiryDto, SaleEnquiryEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SaleEnquiryStaffRequestDto, SaleEnquiryPutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SaleEnquiryStaffRequestDto, SaleEnquiryEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SaleEnquiryUserRequestDto, SaleEnquiryEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SaleEnquiryPutDto, SaleEnquiryEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SaleEnquiryEntity, SaleEnquiryDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            //销售询盘清单
            CreateMap<SaleEnquiryChecklistDto, SaleEnquiryChecklistEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SaleEnquiryChecklistRequestDto, SaleEnquiryChecklistPutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SaleEnquiryChecklistRequestDto, SaleEnquiryChecklistEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SaleEnquiryChecklistPutDto, SaleEnquiryChecklistEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SaleEnquiryChecklistEntity, SaleEnquiryChecklistDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

        }
    }
}
